#!/opt/anaconda3/bin/python
# -*- coding:utf-8 -*-
'''
@project : meiguo_mall
@author  : leftxxk
#@file   : converters.py
#@time   : 2021-05-31 23:52:35
'''


class UsernameConverter:  # 判断用户名是否重复的转换器
    regex = '[a-zA-Z0-9_-]{5,20}'

    def to_python(self, value):
        return value
